const getOpenId = require('./getOpenId/index');
const getTravelSpotList = require('./getTravelSpotList/index')
const getHotelList = require('./getHotelList/index')
const getGoodList = require('./getGoodList/index')
const getSearchList = require('./getSearchList/index')
const getOrderList = require('./getOrderList/index')
const getOrderOpenid = require('./getOrderList/getOrderOpenid')
const addOrder = require('./orderHandle/addOrder')
const getRoadList = require('./getRoadList/index')
const orderHandle = require('./orderHandle/index')
const updateOrder = require('./orderHandle/updateOrder')
const addTotalMoney = require('./moneyHandle/addTotalMoney')
const updateTotalMoney = require('./moneyHandle/updateTotalMoney')
const getTotalMoney = require('./moneyHandle/getTotalMoney')
const getFindList = require('./getFindList/index')
const saveInfo = require('./saveInfo/index')
const getInfo = require('./getInfo/index')

exports.main = async (event, context) => {
  switch (event.type) {
    case 'getOpenId':
      return await getOpenId.main(event, context);
    case 'addOrder':
      return await addOrder.main(event, context);
    case 'addTotalMoney':
      return await addTotalMoney.main(event, context);
    case 'updateTotalMoney':
      return await updateTotalMoney.main(event, context);
    case 'getTotalMoney':
      return await getTotalMoney.main(event, context);
    case 'getTravelSpotList':
      return await getTravelSpotList.main(event, context);
    case 'getHotelList':
      return await getHotelList.main(event, context);
    case 'getGoodList':
      return await getGoodList.main(event, context);
    case 'getSearchList':
      return await getSearchList.main(event, context);
    case 'getOrderList':
      return await getOrderList.main(event, context);
    case 'getRoadList':
      return await getRoadList.main(event, context);
    case 'orderHandle':
      return await orderHandle.main(event, context);
    case 'getOrderOpenid':
      return await getOrderOpenid.main(event, context);
    case 'getFindList':
      return await getFindList.main(event, context);
    case 'saveInfo':
      return await saveInfo.main(event, context);
    case 'getInfo':
      return await getInfo.main(event, context);
    case 'updateOrder':
      return await updateOrder.main(event, context);
  }
};
